<template>
  <div>
    <div class="head">
      <p class="text">设置</p>
      <van-icon
        @click="onClickLeft()"
        size="20"
        color="whitesmoke"
        name="arrow-left"
        class="icon"
      />
    </div>
    <van-cell is-link @click="jumpChangeMsg()">头像与个人信息</van-cell>
    <van-cell is-link @click="jumpAccount()">账号与绑定</van-cell>
    <van-cell is-link @click="showPopup">界面显示</van-cell>
    <van-cell is-link @click="showPopup">消息提醒</van-cell>
    <van-cell is-link @click="showPopup">下载安装</van-cell>
    <van-cell is-link @click="showPopup">图片模式</van-cell>
    <van-cell is-link @click="showPopup">缓存清理</van-cell>
    <van-cell is-link @click="showPopup">帮助与反馈</van-cell>
    <van-cell is-link @click="showPopup">帮助与反馈</van-cell>
    <van-cell is-link @click="showPopup">用户协议</van-cell>
    <van-cell is-link @click="showPopup">隐私政策</van-cell>
    <van-cell is-link @click="showPopup">安全条款</van-cell>
    <van-cell is-link @click="showPopup">关于</van-cell>
    <br />

    <p class="set_esclogin" @click="jumpLogin()">退出登录</p>
  </div>
</template>
<script>
export default {
  methods: {
    showPopup() {},
    onClickLeft() {
      this.$router.push('/mine');
    },
    jumpChangeMsg() {
      this.$router.push('/change');
    },
    jumpAccount() {
      this.$router.push('/account');
    },
    jumpLogin(){
      // 清除用户名个id
      sessionStorage.removeItem('src');
      sessionStorage.removeItem('roleId');
      sessionStorage.removeItem('username');
      // 跳转到登录页
      this.$router.push('/mine');
    },
  },
};
</script>
<style scoped>
.set_esclogin {
  font-weight: bold;
  color: red;
  text-align: center;
  font-size: 1.8rem;
}
.head {
  width: 100%;
  height: 4rem;
  background-color: rgb(108, 144, 243);
}
.text {
  text-align: center;
  font-size: 1.6rem;
  color: whitesmoke;
  line-height: 4rem;
}
.icon {
  position: absolute;
  top: 1.1rem;
  /* left: 0px; */
}
</style>